import math
r = float(input().split()[0])
R = float(input().split()[0])
h = float(input().split()[0])
V = 1.0 / 3.0 * math.pi * h * (R * R + r * r + R * r)
print("%.2lf"%V)
